import os
# 创建子目录
os.makedirs("copyImg")

source_file = 'sea.jpg'
with open(source_file, 'rb') as source:
    for i in range(1, 11):
        # 路径拼接
        path = os.path.join('copyImg', f'seaCopy{i}.jpg')
        with open(path, 'wb') as target:
            target.write(source.read())


